// 搜索
import http from "../common/http.js";

export default {
  searchList: (data, needLoading) => {
    return http.GET("/default/search", data, needLoading);
  },
  cat: (data, needLoading) => {
    return http.GET("/default/cats", data, needLoading);
  },
  // 联想搜索
  getMatchedList: (data) => {
    return http.GET("/store/goods-keyword", data);
  },
  // 搜索推荐
  getSearchFindList: (data) => {
    return http.GET("/store/recommend-key", data);
  },
  // 搜索商品列表
  getSearchList: (data,loading) => {
    return http.GET("/store/goods-list", data,loading);
  },
  //
  hotelSearch: (data) => {
    return http.GET("/store/search-hotel", data);
  },
};
